package cn.lyh.gulimall.ware.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author lyh
 * @version 1.0
 * @since 2021/4/6
 */
/**
    * 商品库存
    */
@Data
@TableName(value = "wms_ware_sku")
public class WmsWareSku {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * sku_id
     */
    @TableField(value = "sku_id")
    private Long skuId;

    /**
     * 仓库id
     */
    @TableField(value = "ware_id")
    private Long wareId;

    /**
     * 库存数
     */
    @TableField(value = "stock")
    private Integer stock;

    /**
     * sku_name
     */
    @TableField(value = "sku_name")
    private String skuName;

    /**
     * 锁定库存
     */
    @TableField(value = "stock_locked")
    private Integer stockLocked;

    public static final String COL_ID = "id";

    public static final String COL_SKU_ID = "sku_id";

    public static final String COL_WARE_ID = "ware_id";

    public static final String COL_STOCK = "stock";

    public static final String COL_SKU_NAME = "sku_name";

    public static final String COL_STOCK_LOCKED = "stock_locked";
}